﻿<UserControl x:Class="GeoPlugin.NorthAmericaViewBox"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Width="800" Height="500">

    <Grid x:Name="LayoutRoot">
        <Grid.Resources>
            <Storyboard x:Name="ShowPopup" x:Key="ShowPopup2">
                <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="GridMenu" Storyboard.TargetProperty="(UIElement.Opacity)">
                    <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="1"/>
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Name="HidePopup" x:Key="HidePopup2">
                <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="GridMenu" Storyboard.TargetProperty="(UIElement.Opacity)">
                    <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="0"/>
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
        </Grid.Resources>
        <Viewbox x:Name="MapsViewbox">
            <Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    x:Name="MapsHotSpot" Width="1200" 		
                    Height="1000">
                <Image x:Name="Image" Height="1000" Stretch="Fill" Width="1200" Canvas.Left="0" Canvas.Top="0"/>
                <Canvas Name="USA" Width="1200" Height="1000">
                    <Path Data="M551.73454,479.63801 C563.8009,490.19608 564.80876,489.69608 564.80876,489.69608 L566.3173,480.64629 579.89319,482.15456 622.12807,498.74553 699.05647,516.84445 753.35926,527.4028 792.57776,528.91056 809.16997,533.4351 813.69527,527.4018 818.22042,534.94301 824.25385,537.95942 836.32107,539.46718 848.38865,543.99167 863.47243,543.99167 846.87978,554.54895 841.74057,560.42152 836.32101,566.61445 851.40497,565.10638 861.96375,563.59816 872.52253,556.05708 C872.52253,556.05708 878.55561,553.04065 878.55561,557.5653 878.55561,562.08995 886.09726,566.6146 886.09726,566.6146 L901.18133,563.59834 911.74022,562.09012 919.2824,568.123 898.16457,574.15635 884.58903,581.69711 883.08064,602.81239 883.08064,626.94426 890.62261,629.96071 896.65618,613.36982 893.63939,596.77937 902.68975,583.20537 914.7569,580.18893 922.29887,589.23826 919.28236,602.81226 929.84113,598.2876 937.38284,607.33693 925.31588,623.92738 934.36624,626.94382 943.41661,625.4356 961.51778,616.38626 970.56809,607.33693 975.09302,599.79582 985.65138,601.30404&#xd;&#xa;993.19301,595.27115 994.70154,584.7136 1008.2775,569.63137 1021.8532,571.13959 1033.9201,566.61493 1042.9707,556.05737 1047.4958,542.48337 1052.0208,531.92581 1064.0877,533.43404 1074.6465,548.51626 1082.1886,557.56559 1088.2218,553.04093 1068.6125,571.13959 1053.5286,589.23826 1053.5286,596.77937 1061.0705,607.33693 1052.0202,613.36982 1041.4614,623.92738 1029.3943,629.96027 1020.3439,655.60004 1017.3272,672.19004 1021.8523,685.76387 1018.8356,700.84551&#xd;&#xa;1015.8188,706.87783 993.19289,726.48416 978.10898,746.09136 964.53345,768.7149 C964.53345,768.7149 973.5838,789.82964 973.5838,794.35427 973.5838,798.87891 987.15933,826.02646 987.15933,826.02646 L987.15933,845.63323 976.60058,847.1413 970.56702,833.56754 960.00827,827.5347 955.4831,815.46901 946.43275,794.35407 941.90757,788.32122 C941.90757,788.32122 934.36561,779.27196 931.34883,785.3048 928.33204,791.33764 913.24812,786.81301 913.24812,786.81301 L898.1642,783.79659 884.58868,782.28838 869.50476,782.28838 872.52154,795.86228 858.94601,800.38691 845.37049,798.8787 837.82853,789.82943 825.76139,792.84585 804.64391,792.84585 771.45928,816.97723 766.93411,845.63323 742.79984,832.05933 742.79984,812.45259 732.24109,801.89512 723.19074,785.3048 706.59843,783.79659 696.03969,788.32122 679.44738,776.25554 683.97255,765.69806 664.36346,747.59953 646.26276,744.58311 634.19562,749.10775 614.58653,743.0749&#xd;&#xa;572.35155,711.40248 545.2005,709.89427 548.21764,696.32037 528.60856,672.189 518.04995,667.66437 516.54157,649.56584 513.52452,628.45089 515.03308,616.38521 505.98273,602.81131 510.50757,587.72921 508.99918,580.18815 521.06631,565.10605 521.06631,548.51573 530.11667,534.94183 542.1838,525.89257 545.20058,515.33509 z" Fill="#FFCE4218" Height="368.524" Canvas.Left="505.986" Stretch="Fill" Stroke="Black" Canvas.Top="479.638" Width="583.202"/>
                </Canvas>
            </Canvas>
        </Viewbox>

        <Popup x:Name="contextMenu" Opened="contextMenu_Opened" Closed="contextMenu_Closed">
            <Grid x:Name="GridMenu" Opacity="0.9">
                    <ListBox x:Name="contextListBox" Opacity="0.9" />
            </Grid>
        </Popup>

        
        
    </Grid>
</UserControl>
